﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program10
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("一下一下来");
            for (int a = 1; a < 10; a++)
            {
                for (int b = 1; b <= a; b++)
                {
                    Console.Write(a + "x" + b + "=" + a * b + "\t");
                }
                Console.WriteLine("");
                Console.ReadKey();
            }

            Console.WriteLine("看得出来这个是一个漏斗");
            int i, j;
            for (i = 1; i <= 5; i++)
            {
                for (j = 1; j <= 5 % i; j++)
                {
                    Console.Write(' ');
                }
                for (j = 6 - i; j >= i; j--)
                {
                    Console.Write('*');
                }
                for (j = 2 * i - 5; j >= 1; j--)
                {
                    if (i == 3)
                    {
                        Console.Write(' ');
                    }
                    else{
                        Console.Write('*');
                    }
                }
                Console.WriteLine("");
            }
            Console.ReadKey();
        }

    }
}

